package com.jwsoft.manager.common.enums;

public enum ComplaintTypeEnum {
    fcsy("1", "房产使用申诉"),
    fc("2", "房产信息申诉"),
    fcxq("3", "房产学区申诉"),
    hjxq("4", "户籍学区申诉"),
    hj("5", "户籍信息申诉"),
    jzz("6", "居住证信息申诉"),
    wq("7", "网签信息申诉"),
    sb("8", "社保信息申诉"),
    qy("9", "企业信息申诉"),
    jtgx("10", "家庭亲子关系申诉"),
    ;

    private String type;
    private String name;

    private ComplaintTypeEnum(String type, String name) {
        this.type = type;
        this.name = name;
    }

    public String getType() {
        return this.type;
    }

    public String getName() {
        return this.name;
    }

    public static ComplaintTypeEnum getByType(String type) {
        for (ComplaintTypeEnum typeEnum : values()) {
            if (typeEnum.getType().equals(type)) {
                return typeEnum;
            }
        }
        return null;
    }
}
